﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserMenuCtrl.ascx.cs"
    Inherits="Web.ctrl.UserMenuCtrl" %>
<div class="main_left">
    <div class="portrait">
        <img src="images/no_pic.png" width="108" height="108" />
        <div class="portrait_edit">
            <a href="Myface.aspx"><span>上传新头像</span></a>
        </div>
    </div>
    <div class="nav_left">
        <ul>
            <li class="mycount" onmouseover="chanagediv(this,'at','divaccount',true)" onmouseout="chanagediv(this,'at','divaccount',false)">
                <div class="postion">
                    <a href="#"><span>我的账号</span><i class="arrow"></i></a></div>
                <div id="divaccount" class="lay_nav" style="display: none;">
                    <dl>
                        <dd>
                            <a href="MyAccount.aspx">个人信息</a></dd>
                        <dd class="last">
                            <a href="MyPwdChange.aspx">密码修改</a></dd>
                    </dl>
                </div>
            </li>
            <li class="myorder" onmouseover="chanagediv(this,'at','divorder',true)" onmouseout="chanagediv(this,'at','divorder',false)">
                <div class="postion">
                    <a href="#"><span>订单管理</span><i class="arrow"></i></a></div>
                <div id="divorder" class="lay_nav" style="display: none;">
                    <dl>
                        <dd>
                            <a href="MyOrder.aspx">我的订单</a></dd>
                        <dd class="last">
                            <a href="MyFavorites.aspx">我的收藏</a></dd>
                    </dl>
                </div>
            </li>
            <li class="myjifen" onmouseover="chanagediv(this,'at brstyle','',true)" onmouseout="chanagediv(this,'at brstyle','',false)">
                <div class="postion">
                    <a href="MyScoreRecords.aspx"><span>荷包管理</span></a></div>
            </li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    var divdoms = ["divaccount", "divorder"];
    //isnone true显示false隐藏
    function chanagediv(currentdom, currentdomstyle, name, isnone) {
        if (isnone) {
            currentdom.className = currentdom.className + " " + currentdomstyle;
        }
        else {
            currentdom.className = currentdom.className.replace(" " + currentdomstyle, "");
        }

        if (name != "") {
            for (var i = 0; i < divdoms.length; i++) {
                if (divdoms[i] == name) {
                    document.getElementById(divdoms[i]).style.display = isnone ? "" : "none";
                }
                else {
                    document.getElementById(divdoms[i]).style.display = "none";
                }
            }
        }
    }
</script>
